package edu.colorado.cs.correll.cudroplet.shaperecognition;

import java.util.Set;

import processing.core.PApplet;

public class RobotUtils {
	public static Robot getMax(Set<Robot> robots) {
		int maxId = PApplet.MIN_INT;
		Robot max = null;
		for (Robot robot : robots) {
			if (robot.id > maxId) {
				maxId = robot.id;
				max = robot;
			}
		}
		return max;
	}
}
